package com.heifei.day02

/**
 * @author caizhengjun
 * @date 2020/8/4 7:54 下午
 */
class People(val name: String) {

  var age: Int = _
  var gender: String = _

  def this(age: Int, gender: String) {
    this("蔡正峻")
    this.age = age
    this.gender = gender
  }
}


object People {

  def main(args: Array[String]): Unit = {
    val people: People = new People("万杰")
    val p1: People = new People(25, "男")
    println(p1.age)
    println(people.name)
  }

}
